//
//  BaoGongDanViewController.h
//  BaoGongBao
//
//  Created by User on 14/11/13.
//  Copyright (c) 2014年 irule. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BGBHeaderFooterView.h"
#import "BaoGongDanTableViewCell.h"



typedef NS_ENUM(NSUInteger, BaoGongDanViewControllerTag) {
	kBaoGongDanViewControllerTag_QR					= 1,
	kBaoGongDanViewControllerTag_Search,

	kBaoGongDanViewControllerTag_tfDingDanHao,
	kBaoGongDanViewControllerTag_tfBaoGongRen,
	kBaoGongDanViewControllerTag_tfGongXuHao,
	kBaoGongDanViewControllerTag_tfBaoGongShu,
};

typedef NS_ENUM(NSUInteger, BaoGongDanViewControllerType)
{
	kBaoGongDanViewControllerType_SpareParts			= 0,// 零部件
	kBaoGongDanViewControllerType_Merchandiser			= 1,// 跟单
};

typedef NS_ENUM(NSUInteger, BaoGongDanViewControllerTab) {
	kBaoGongDanViewControllerTab_WanGongBaoGong			= 0,
	kBaoGongDanViewControllerTab_JiLuChaXun,
	kBaoGongDanViewControllerTab_TongBuSheZhi,
};

@interface BaoGongDanViewController : UIViewController<UITableViewDelegate, UITableViewDataSource, UITextFieldDelegate, QRCodeViewControllerDelegate, UIAlertViewDelegate>
{
	// 1
	NSString *m_hv1_tfDingDanHao;
	BOOL m_hv1_bSearch;

	// 2
	NSString *m_hv2_tfDingDanHao;
	NSString *m_hv2_tfTianShu;
	NSString *m_hv2_tfZhuangTai;

	// 3
	NSString *m_hv3_tfDingDanHao;
	NSMutableArray *m_hv3_guid;

	// 4
	NSString *m_hv4_tfDingDanHao;
	BOOL m_hv4_bSearch;

	// 5
	NSString *m_hv5_tfDingDanHao;
	NSString *m_hv5_tfTianShu;
	NSString *m_hv5_tfZhuangTai;

	// 6
	NSString *m_hv6_tfDingDanHao;
	NSMutableArray *m_hv6_guid;
}

@property (nonatomic, assign) BaoGongDanViewControllerType mBaoGongDanViewControllerType;
@property (nonatomic, assign) BaoGongDanViewControllerTab mBaoGongDanViewControllerTab;

@property (nonatomic, strong) UIView *v1;
@property (nonatomic, strong) UIView *v2;

@property (nonatomic, strong) UIView *v3;
@property (nonatomic, strong) UIView *v4;

@property (nonatomic, strong) UIView *v5;
@property (nonatomic, strong) UIView *v6;

@property (nonatomic, strong) UITableView *tvSpareParts_WanGongBaoGong;
@property (nonatomic, strong) UITableView *tvMerchandiser_WanGongBaoGong;

@property (nonatomic, strong) UITableView *tvSpareParts_JiLuChaXun;
@property (nonatomic, strong) UITableView *tvMerchandiser_JiLuChaXun;

@property (nonatomic, strong) UITableView *tvSpareParts_TongBuSheZhi;
@property (nonatomic, strong) UITableView *tvMerchandiser_TongBuSheZhi;

@property (nonatomic, strong) UIView *mViewInput;


@property (nonatomic, strong) BGDSparePartsWanGongBaoGongHeaderView *hv1;
@property (nonatomic, strong) NSDictionary *mArrData1;
@property (nonatomic, strong) BGDSparePartsJiLuChaXunHeaderView *hv2;
@property (nonatomic, strong) NSArray *mArrData2;
@property (nonatomic, strong) BGDSparePartsTongBuSheZhiHeaderView *hv3;
@property (nonatomic, strong) NSArray *mArrData3;

@property (nonatomic, strong) BGDMerchandiserWanGongBaoGongHeaderView *hv4;
@property (nonatomic, strong) NSDictionary *mArrData4;
@property (nonatomic, strong) BGDMerchandiserJiLuChaXunHeaderView *hv5;
@property (nonatomic, strong) NSArray *mArrData5;
@property (nonatomic, strong) BGDMerchandiserTongBuSheZhiHeaderView *hv6;
@property (nonatomic, strong) NSArray *mArrData6;

@property (nonatomic, strong) UIView *vPop;
@property (nonatomic, strong) UITableView *table;
@property (nonatomic, strong) NSMutableArray *mArrTemp;

@end
